﻿<%@ Page Title="" Language="C#" MasterPageFile="~/rightContent.Master" AutoEventWireup="true"
    CodeBehind="workflowView.aspx.cs" Inherits="WEB.workflow.workflowView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
    任务列表
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div style="margin: 10px 40% 10px 40%; width: 377px;">
        <asp:DropDownList ID="ddlWorkList" runat="server" AutoPostBack="True">
            <asp:ListItem Value="0">未完成任务</asp:ListItem>
            <asp:ListItem Value="1">历史任务</asp:ListItem>
        </asp:DropDownList>
    &nbsp;&nbsp;
        <asp:DropDownList ID="ddlEmp" runat="server" AutoPostBack="True" Width="150px">
        </asp:DropDownList>
    </div>
    <asp:GridView ID="gvMyWorkflow" runat="server" CellPadding="4" DataKeyNames="WKID"
        ForeColor="Black" GridLines="Vertical" OnRowCommand="gvMyWorkflow_RowCommand"
        AutoGenerateColumns="False" CssClass="distance-table" OnRowDataBound="gvMyWorkflow_RowDataBound"
        AllowPaging="True" OnPageIndexChanging="gvMyWorkflow_PageIndexChanging" PageSize="20"
        BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px"
        Width="800px">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="WKID" HeaderText="工作流号" />
            <asp:BoundField DataField="sheetID" HeaderText="委托单号" />
            <asp:BoundField DataField="jobNO" HeaderText="任务岗位" />
            <asp:BoundField DataField="busName" HeaderText="当前业务环节" />
            <asp:BoundField DataField="inputEmpNo" HeaderText="传递人" />
            <asp:BoundField DataField="inputDate" HeaderText="传入日期" />
            <asp:TemplateField HeaderText="处理及时度">
                <ItemTemplate>
                    <asp:Image Width="32px" Height="32px" ID="ImgIntime" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="是否接收">
                <ItemTemplate>
                    <asp:Image Width="32px" Height="32px" ID="ImgStatus" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:ButtonField ButtonType="Button" ControlStyle-CssClass="Submit_gv" CommandName="Receive"
                Text="接收">
                <ControlStyle CssClass="Submit_gv" BorderStyle="None"></ControlStyle>
            </asp:ButtonField>
            <asp:ButtonField ButtonType="Button" CommandName="Handle" Text="处理">
                <ControlStyle BorderStyle="None" CssClass="Submit_gv" />
            </asp:ButtonField>
        </Columns>
                            <PagerTemplate>
                        <br />
                        <asp:Label ID="lblPage" runat="server" Text='<%# "第" + (((GridView)Container.NamingContainer).PageIndex + 1)  + "页/共" + (((GridView)Container.NamingContainer).PageCount) + "页" %> '></asp:Label>
                        <asp:LinkButton ID="lbnFirst" runat="Server" Text="首页" Enabled='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'
                            CommandName="Page" CommandArgument="First"></asp:LinkButton>
                        <asp:LinkButton ID="lbnPrev" runat="server" Text="上一页" Enabled='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'
                            CommandName="Page" CommandArgument="Prev"></asp:LinkButton>
                        <asp:LinkButton ID="lbnNext" runat="Server" Text="下一页" Enabled='<%# ((GridView)Container.NamingContainer).PageIndex != (((GridView)Container.NamingContainer).PageCount - 1) %>'
                            CommandName="Page" CommandArgument="Next"></asp:LinkButton>
                        <asp:LinkButton ID="lbnLast" runat="Server" Text="尾页" Enabled='<%# ((GridView)Container.NamingContainer).PageIndex != (((GridView)Container.NamingContainer).PageCount - 1) %>'
                            CommandName="Page" CommandArgument="Last"></asp:LinkButton>
                       
                        <br />
                    </PagerTemplate>
        <FooterStyle BackColor="#CCCC99" />
        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
        <PagerSettings PageButtonCount="5" />
        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
        <RowStyle BackColor="#F7F7DE" />
        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FBFBF2" />
        <SortedAscendingHeaderStyle BackColor="#848384" />
        <SortedDescendingCellStyle BackColor="#EAEAD3" />
        <SortedDescendingHeaderStyle BackColor="#575357" />
    </asp:GridView>
</asp:Content>
